import java.util.*;

public class stream {
    public static void test1(String... a) {
//        System.out.println(a);
//        for(String s :a) System.out.println(s);
    }

    public static void main(String[] args) {
        List<String> strings = Arrays.asList("a", "b");
//        strings.add("c");
        System.out.println(strings);
        strings.forEach(s -> System.out.println(s));
        Iterator<String> iterator = strings.iterator();
        String next = iterator.next();
        iterator.forEachRemaining(s-> System.out.println(s));
        Comparable<String> a=x->x.length();
//        Collections.addAll()

//        test1("a","b");
    }
}
